package com.example;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * User: wlai
 * Date: 12/5/12
 * Time: 9:03 PM
 * To change this template use File | Settings | File Templates.
 */
public class MainActivity extends Activity {

    private Button addCategoryButton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);     //To change body of overridden methods use File | Settings | File Templates.
        this.setContentView(R.layout.main);
        addCategoryButton = (Button) findViewById(1);//R.id.addCategoryButton);

        addCategoryButton.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(MainActivity.this, CategoryList.class);
                startActivity(intent);
            }
        });
    }


}
